package com.yantong.pojo;

import com.yantong.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单列表查询请求参数封装
 * @author kanghaixin
 * @date 2018/9/8.20:02
 */
public class ListOrderParams implements Serializable {
    /**
     * 关键字查询，收货人姓名、收货人电话、门店姓名、订单号
     */
    private String queryItem;
    /**
     * 订单所在省份
     */
    private String province;
    /**
     * 订单所在城市
     */
    private String city;
    
    /**
     * 订单所在区
     */
    private String district;
    
    /**
     * 商户ID
     */
    private Long centreId;
    /**
     * 订单创建时间 区间起始
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date start;
    /**
     * 订单创建时间 区间结束
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date end;
    /**
     * 支付状态
     */
    private Integer payStatus;
    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 会员ID
     */
    private Long mid;
    /**
     * 门店ID
     */
    private Long tmid;
    
    //仓库ID
    private Long storeroomId;
    
    private Long nodirectId;

    private Long baseproductid;//区分商户商品，平台商品
    
    private Integer dispatchid;//运费模板

    private Integer isCentreord;
    
    private Integer spellgroupStu;
    
    private Integer orderType;//0:普通 1预售 2拼团 3秒杀 4预约 5积分兑换 6外卖

    /**
     * 配送员姓名
     */
    private String deliverymanName;

    /**
     * 配送员电话号码
     */
    private String deliverymanMobile;

    private Long dmid;

    private Integer cateringType;
    /**店员ID**/
    private Long clerkId;
    /**店员名字**/
    private String clerkName;

    /**
     * 是否外卖产品的标记
     * @return
     */
    private Integer isWaimai;

    private Long activityId;

    private Boolean statusFlag;

    public Boolean getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Boolean statusFlag) {
        this.statusFlag = statusFlag;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getSpellgroupStu() {
		return spellgroupStu;
	}

	public void setSpellgroupStu(Integer spellgroupStu) {
		this.spellgroupStu = spellgroupStu;
	}

	public Integer getIsCentreord() {
        return isCentreord;
    }

    public void setIsCentreord(Integer isCentreord) {
        this.isCentreord = isCentreord;
    }

    public Integer getDispatchid() {
		return dispatchid;
	}

	public void setDispatchid(Integer dispatchid) {
		this.dispatchid = dispatchid;
	}

	public Long getBaseproductid() {
		return baseproductid;
	}

	public void setBaseproductid(Long baseproductid) {
		this.baseproductid = baseproductid;
	}

	public Long getNodirectId() {
		return nodirectId;
	}

	public void setNodirectId(Long nodirectId) {
		this.nodirectId = nodirectId;
	}

    public Long getTmid() {
        return tmid;
    }

    public void setTmid(Long tmid) {
        this.tmid = tmid;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getQueryItem() {
        return queryItem;
    }

    public void setQueryItem(String queryItem) {
        this.queryItem = queryItem;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    
    public String getDistrict(){
        return district;
    }

    public void setDistrict(String district){
        this.district = district;
    }

    public Long getCentreId() {
        return centreId;
    }

    public void setCentreId(Long centreId) {
        this.centreId = centreId;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public Long getStoreroomId(){
        return storeroomId;
    }

    public void setStoreroomId(Long storeroomId){
        this.storeroomId = storeroomId;
    }

    public String getDeliverymanName() {
        return deliverymanName;
    }

    public void setDeliverymanName(String deliverymanName) {
        this.deliverymanName = deliverymanName;
    }

    public String getDeliverymanMobile() {
        return deliverymanMobile;
    }

    public void setDeliverymanMobile(String deliverymanMobile) {
        this.deliverymanMobile = deliverymanMobile;
    }

    public Long getDmid() {
        return dmid;
    }

    public void setDmid(Long dmid) {
        this.dmid = dmid;
    }

    public Integer getCateringType() {
        return cateringType;
    }

    public void setCateringType(Integer cateringType) {
        this.cateringType = cateringType;
    }

    public Long getClerkId() {
        return clerkId;
    }

    public void setClerkId(Long clerkId) {
        this.clerkId = clerkId;
    }

    public String getClerkName() {
        return clerkName;
    }

    public void setClerkName(String clerkName) {
        this.clerkName = clerkName;
    }

    public Integer getIsWaimai() {
        return isWaimai;
    }

    public void setIsWaimai(Integer isWaimai) {
        this.isWaimai = isWaimai;
    }
}
